package com.dongdong.controller;

import com.dongdong.service.FreeMarketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @Deacription TODO
 * @Author Lenovo
 * @Date 2020/12/17 19:04
 * @Version 1.0
 **/
@Controller
public class FreeMarketController {

    @Resource
    private FreeMarketService freeMarketService;

    @RequestMapping("itemPage")
    @ResponseBody
    public String itemPage(Long goodsId){
        freeMarketService.createItemPage(goodsId);
        return "ok";
    }
}

